name = "我是"
message = "%s天才" % name
print(message)

num = 57
s2 = "%d + 11 = %d" % (10, 21)
print(s2)

s1 = "nihao"
s2 = "world"

s3 = "%s %s" % (s1, s2)

print(s3)

year = 2006
price = 19.99998888

# 精度控制 m.n m代表宽度一般不用，n会四舍五入
message = "成立于 %d ,价格是 %.2f" % (year, price)
print(message)

# 更优雅的字符串格式化 f"{变量}",不理会类型 不做精度控制，原样输出
message = f"你好{message}-{price}"
print(message)

print(f"{1 + 2}")
print("结果%d" % (1+2))

